﻿using Novel.Web.Models.Entity;
using Novel.Web.Models.Novel;
using Novel.Web.Models.Novel.output;
using Novel.Web.Models.Repository;
using SqlSugar;
using System.ComponentModel;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Xml;
using XjjXmm.FrameWork.ToolKit;
using XjjXmm.Infrastructure.Repository;
using XjjXmm.Infrastructure.Repository.Model;
using XjjXmm.Spider;
using XjjXmm.Spider.Entity;

namespace Novel.Web.Models
{
    public class SuggestService
    {
        // private readonly ISqlSugarClient sqlSugarClient;

        private readonly ISuggestRepository suggestRepository;


        public SuggestService(ISuggestRepository suggestRepository)
        {
            this.suggestRepository = suggestRepository;
        }


       public async Task<long> Add(SuggestEntity suggestEntity)
        {
             return await this.suggestRepository.AddReturnIdentity(suggestEntity);
        }
       
    }
}
